import service from '@/utils/request'


// 获取公告管理
export const getAnnouncementManagement = (data) => {
    return service({
        method: 'post',
        url: '/msg/getAnnouncementManagement',
        data
    })
}
// 新增公告管理
export const addAnnouncementManagement = (data) => {
    return service({
        method: 'post',
        url: '/msg/addAnnouncementManagement',
        data
    })
}

// 修改公告管理
export const editAnnouncementManagement = (data) => {
    return service({
        method: 'post',
        url: '/msg/editAnnouncementManagement',
        data
    })
}
// 删除公告管理
export const firstDeleteAnnouncementManagement = (data) => {
    return service({
        method: 'post',
        url: '/msg/firstDeleteAnnouncementManagement',
        data
    })
}



// 获取系统消息
export const getSystemMessages = (data) => {
    return service({
        method: 'post',
        url: '/msg/getSystemMessages',
        data
    })
}

// 修改系统消息
export const editSystemMessages = (data) => {
    return service({
        method: 'post',
        url: '/msg/editSystemMessages',
        data
    })
}
// 获取回收站的公告
export const getRecycleBin = (data) => {
    return service({
        method: 'post',
        url: '/msg/getRecycleBin',
        data
    })
}


// 删除回收站的消息
export const deleteRecycleBin = (data) => {
    return service({
        method: 'post',
        url: '/msg/deleteRecycleBin',
        data
    })
}

// 还原回收站的消息
export const reductionRecycleBin = (data) => {
    return service({
        method: 'post',
        url: '/msg/reductionRecycleBin',
        data
    })
}

// 获取部门消息
export const deparmentMessage = (data) => {
    return service({
        method: 'post',
        url: '/msg/deparmentMessage',
        data
    })
}

// 获取未读的消息
export const getReadList = () => {
    return service({
        method: 'get',
        url: '/msg/getReadList',
    })
}

// 信息阅读次数更改
export const changeReadingTimes = (data) => {
    return service({
        method: 'post',
        url: '/msg/changeReadingTimes',
        data
    })
}

//删减当前用户的未阅读的信息
export const deleteReadList = (data) => {
    return service({
        method: 'post',
        url: '/msg/deleteReadList',
        data
    })
}

//添加信息id当前用户的未阅读的信息
export const addReadList = (data) => {
    return service({
        method: 'post',
        url: '/msg/addReadList',
        data
    })
}

// 更改当前用户的未阅读的信息
export const editReadList = (data) => {
    return service({
        method: 'post',
        url: '/msg/editReadList',
        data
    })
}
